package com.xjrsoft.module.customer.erp_model.erpPurchaseRequsetInfo.service;

import com.xjrsoft.module.customer.erp_model.erpPurchaseRequsetInfo.dto.SaveErpPurchaserequsetFormDataDto;
import com.xjrsoft.module.customer.erp_model.erpPurchaseRequsetInfo.entity.ErpPurchaserequset;
import com.xjrsoft.module.customer.erp_model.erpPurchaseRequsetInfo.entity.ErpPurchaserequsetentry;
import com.xjrsoft.module.customer.erp_model.erpPurchaseRequsetInfo.dto.ErpPurchaserequsetListDto;
import com.baomidou.mybatisplus.core.metadata.IPage;

import java.util.List;
import com.baomidou.mybatisplus.extension.service.IService;

/**
 *  服务类
 *
 * @author pp
 * @since 2021-09-24
 */
public interface IErpPurchaserequsetService extends IService<ErpPurchaserequset> {
	/**
	 * 自定义分页
	 *
	 * @param pageListDto
	 * @return
	 */
	IPage<ErpPurchaserequset> getPageList(ErpPurchaserequsetListDto pageListDto);

	List<ErpPurchaserequsetentry> getErpPurchaserequsetentryByParentId(String parentId);
	String addErpPurchaserequset(ErpPurchaserequset erpPurchaserequset, List<ErpPurchaserequsetentry> erpPurchaserequsetentryList);

	String examine(String id, SaveErpPurchaserequsetFormDataDto formDto);

	boolean updateErpPurchaserequset(String id, ErpPurchaserequset erpPurchaserequset, List<ErpPurchaserequsetentry> erpPurchaserequsetentryList);
}
